<?php
/**
 * Simple pie chart
 */
set_include_path( get_include_path() . PATH_SEPARATOR . '../lib' );

require('Zend/Loader/Autoloader.php');
$autoloader = Zend_Loader_Autoloader::getInstance();
$autoloader->registerNamespace( 'Newsky_' );

$gc = Newsky_Google_Chart::factory( 'p3' );
$gc->setWidth( 300 )
   ->setHeight( 300 )
   ->setTitle( 'Example pie chart' );

$gc->getSerie( 'data1' )->addSerie( array(25,15,60) );

echo $gc;